package com.bong.panpan.bongcharttools.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.bong.panpan.bongcharttools.HeartRateShowActivity;
import com.bong.panpan.bongcharttools.MainActivity;
import com.bong.panpan.bongcharttools.MainActivity2;
import com.bong.panpan.bongcharttools.R;
import com.bong.panpan.bongcharttools.TempShowActivity;

import butterknife.ButterKnife;
import butterknife.OnClick;

public class ModelChooseActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_model_choose);
        ButterKnife.inject(this);
    }

    @OnClick({R.id.button1, R.id.button2, R.id.button3,R.id.button4})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.button1:
                startActivity(new Intent(this,HeartRateShowActivity.class));
                break;
            case R.id.button2:
                startActivity(new Intent(this,MainActivity.class));
                break;
            case R.id.button3:
                startActivity(new Intent(this,MainActivity2.class));
                break;
            case R.id.button4:
                startActivity(new Intent(this,TempShowActivity.class));
                break;
        }
        finish();
    }
}
